package filedemo1;

import java.io.File;

public class Test1 {
    public static void main(String[] args) {
        //    D:\vscode\CSS
        //    D:\vscode\file

        String s = "D:\\vscode\\CSS";
        File f1 = new File(s);
        System.out.println(f1);

        String parent = "D:\\vscode";
        String child = "file";
        File f2 = new File(parent, child);
        System.out.println(f2);

        File parent2 = new File("D:\\vscode");
        File f4 = new File(parent2, child);
        System.out.println(f4);
    }
}
